    <!DOCTYPE html>
    <html lang="en">
    <head>
        <meta charset="UTF-8">
        <title>Title</title>
        <style>
            body{
                height: 5000px;
                width: 2000px;
            }
        </style>
    </head>
    <body>
    <script>
        window.onscroll=function () {
     // document.title=document.body.scrollTop+'  '+document.body.scrollLeft;
     document.title=document.body.scrollTop || document.documentElement.scrollTop+'  '+document.body.scrollLeft|| document.documentElement.scrollLeft;
        }
    </script>

    </body>
    </html>